#!/bin/sh
# Replace these three settings.
PROJDIR="/home/kevin/project/mysite"
PIDFILE="/tmp/mysite.pid"
SOCKET="/tmp/mysite.sock"
cd $PROJDIR
if [ -f $PIDFILE ]; then
    kill `cat -- $PIDFILE`
        rm -f -- $PIDFILE
    fi
    exec /usr/local/bin/python2.7 manage.py runfcgi method=prefork socket=${SOCKET} pidfile=${PIDFILE} minspare=5 maxspare=10 maxchildren=40
